package com.cq.hd.order.api;

import com.cq.hd.common.response.Result;
import com.cq.hd.order.api.dto.OrderFirstRecordDto;
import com.cq.hd.order.api.vo.OrderFirstRecordVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "hd-o2o-order-service", contextId = "order-first-record-api")
public interface TbOrderFirstRecordApi {

    // 根据条件查询首次下单用户记录
    @GetMapping("/order/orderFirstRecord/listByDto")
    Result<List<OrderFirstRecordVo>> listByDto(@SpringQueryMap OrderFirstRecordDto orderFirstRecordDto);
}
